package com.xyf.sys.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyf.sys.domain.Order;
import com.xyf.sys.domain.OrderAddress;
import com.xyf.sys.domain.OrderProduct;
import com.xyf.sys.domain.SysCartItem;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author R-H
 * @Date 2024/3/31916
 * @Description
 */
@Data
public class OrderVo extends Order {

    private String regimentAvatar;

    private String regimentName;

    @ApiModelProperty("运单号")
    private String waybillNo;

    private String orderTimeFormat;

    private List<OrderProduct> productList;

    private OrderAddress userAddress;

    private OrderAddress regimentAddress;

    private OrderAddress deptAddress;

    private Integer num;

    private String orderId;

    private Integer eventType;
    private String actorType;
    private String actorName;
    private String description;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;

    private Long orderLogisticsId;

    private String index;

    private Integer latestEventType;

    private List<SysCartItem> cartItems;


    private String userAvatar;
    private String userName;
    private String userPhone;

    private Long orderEventId;

    private String deptName;

    private String deptAvatar;

    private String appid;

}
